package com.erb.mapper;

import com.erb.entity.IntegralGoods;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 积分商品Mapper接口
 */
@Mapper
public interface IntegralGoodsMapper {
	List<IntegralGoods> findGoodsForList();

	Integer saveIntegralGoods(@Param("goods") IntegralGoods integralGoods);

	IntegralGoods findGoodsById(@Param("id") int id);

	Integer modifyIntegralGoods(@Param("goods") IntegralGoods integralGoods);

	Integer removeIntegralGoods(@Param("id") Integer goodsId);

	List<IntegralGoods> findGoodsForListOfPutaway();

	Integer modifyGoodsStock(@Param("incr") int incr, @Param("id") int id);

	Integer findStockById(@Param("id") int id);

	Integer modifyGoodsStateById(@Param("id") int id, @Param("state") boolean state);
}
